projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff5da6c
)
(x_new_font): xmalloc arg was 1 too small.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 3 Nov 1993 20:31:49 +0000
(20:31 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 3 Nov 1993 20:31:49 +0000
(20:31 +0000)
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index 2fa3139c558e71ef8a5a6c13ea7b95b7d8c517b0..f995a2db6322a2ab446aa474c67ce6b904f21608 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-4108,7
+4108,7
@@
x_new_font (f, fontname)
* sizeof (x_font_table[0])));
}
- x_font_table[n_fonts].name = (char *) xmalloc (strlen (fontname));
+ x_font_table[n_fonts].name = (char *) xmalloc (strlen (fontname)
+ 1
);
bcopy (fontname, x_font_table[n_fonts].name, strlen (fontname) + 1);
f->display.x->font = x_font_table[n_fonts++].font = font;
}